﻿/****************************************************************
Architecture:
Mohammad Ashraful Alam, Microsoft MVP 2007-2010
Portfolio: http://www.ashraful.net
***************************************************************/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Collections;
using System.Web;
namespace DaXDD.InMemoryDatabase
{
    public partial class InMemoryDataSource
    {
        private static DataSet _dataSet;
        private static DataSet DataSet
        {
            get
            {
                if (_dataSet == null)
                {
                    _dataSet = new DataSet();
                    _dataSet.ReadXmlSchema(HttpContext.Current.Server.MapPath(@"~/App_Data/data.xsd"));
                    _dataSet.ReadXml(HttpContext.Current.Server.MapPath(@"~/App_Data/employees.xml"));
                }
                return _dataSet;
            }
        }
    }
}
